<div class="side2">
        <div class="lside-tl">
          <div class="lside-tr">
            <div class="lside-top"></div>
          </div>
        </div>
        <div class="search-inner">
         <?php if($this->request->params['controller'] == 'projects' && (empty($this->request->params['named']['type']) || $this->request->params['named']['type'] != 'myprojects')): ?>
          <?php echo $this->Form->create('Project', array('type' => 'get', 'class' => 'search clearfix', 'action'=>'index')); ?>
            <div class="input text required">
              <?php echo $this->Form->input('q', array('label' => __l('Search'))); ?>
            </div>
            <div class="submit">
              <?php echo $this->Form->submit(__l('Search'));?>
            </div>
          <?php echo $this->Form->end(); ?>
          <?php
          if(!empty($this->request->params['named']['type'])){
          echo $this->requestAction(array('controller' => 'projects', 'action' => 'lst','type'=>$this->request->params['named']['type']), array('return'));
          }elseif($this->request->params['controller'] == 'projects' && $this->request->params['action'] == 'index'){
          echo $this->requestAction(array('controller' => 'projects', 'action' => 'lst','type'=>'All'), array('return'));
          }else{
          echo $this->requestAction(array('controller' => 'projects', 'action' => 'lst'), array('return'));
          }
          elseif($this->Auth->sessionValid()): ?>
             <ul class="side2-list">
               <?php $class = ($this->request->params['controller'] == 'projects' && !empty($this->request->params['named']['type']) &&  $this->request->params['named']['type'] == 'myprojects') ? ' class="active"' : null; ?>
                  <li <?php echo $class; ?>><?php echo $this->Html->link(__l('My Projects'), array('controller' => 'projects', 'action' => 'index','type'=>'myprojects'), array('title' => __l('My Projects'))); ?></li>
               <?php $class = ($this->request->params['controller'] == 'project_funds' && !empty($this->request->params['named']['type']) &&  $this->request->params['named']['type'] == 'mydonations') ? ' class="active"' : null; ?>
                 <li <?php echo $class; ?>><?php echo $this->Html->link(__l('My Funds'), array('controller' => 'project_funds', 'action' => 'index','type'=>'mydonations'), array('title' => __l('My Funds'))); ?></li>
        	</ul>
	    <?php endif;?>
        </div>
        <div class="lside-bl">
          <div class="lside-br">
            <div class="lside-bmid"></div>
          </div>
        </div>
    
        <div class="sugg-tl">
          <div class="sugg-tr">
            <div class="sugg-top"></div>
          </div>
        </div>
        <div class="sugg-inner">
            <ul class="side2-list">
			<?php $class = ($this->request->params['controller'] == 'projects' && $this->request->params['action'] == 'add') ? ' class="active"' : null; ?>
           <li><?php echo $this->Html->link(__l('Add New'), array('controller' => 'projects', 'action' => 'add'), array('title' => __l('Add New')));?></li></ul>
          
        </div>
        <div class="sugg-bl">
          <div class="sugg-br">
            <div class="sugg-bot"></div>
          </div>
        </div>
      </div>